package common;

public class Conf {
	// Mutual Exclusion Scheme
	public static final byte ME_SCHEME = Def.ME_TOKENLESS;	// or Def.ME_TOKEN
									// Def.ME_TOKENLESS = Ricart-Agrawala's Algorithm
									// Def.ME_TOKEN = Raymond's Algorithm
	public static final long ME_REQUEST_TIMEOUT_MS = 60 * 1000;	// 1 minutes
	
	// console
	public static final boolean MGMT_CONSOLE = false;	// management console on / off -- if it's on consoles on single processes will turn off, otherwise vice versa.
	public static final boolean VERBOSE = true;		// if this is set to be 'true' all msgs printed out via Utils.print_log() will be on the screen
													// use Utils.print_log() for debugging purpose --> once you set this 'false', all debugging msgs will be gone
	
	// Launcher conf
	public static final int MAX_LOCAL_NODES = 50;
	
	// Process conf
	public static final int MIN_WRITETIME_MS = 1000;	// min 1 sec
	public static final int MAX_WRITETIME_MS = 9000;	// max 1+9 = 10 sec
	public static final int N_RESOURCES_PER_NODE = 5;
	public static final int MAX_TRIAL = 3;
	
	// communication conf
	public static final int STARTING_PORT_NO = 9000;
	public static final int TCP_SAFE_STANDBY_MS = 50000;
	public static final int THREAD_SLEEPTIME_MS = 10;
	
}
